package com.imooc.ad.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

/**
 * @Description: TODO
 * @ClassName: CreateUserRequest
 * @Author: zhangzhongyu
 * @Date: 2019-10-12 18:01
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateUserRequest {

    private String userName;

    public boolean validate() {
        return !StringUtils.isEmpty(userName);
    }
}
